home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12850 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.0 KB

  1. Path: news.ichange.com!newsmaster
  2. From: Jesse Liberty <jl@staff.ichange.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: what is the difference between object orientated programming and lets say C??
  5. Date: Thu, 21 Mar 1996 10:17:35 -0500
  6. Organization: AT&T
  7. Message-ID: <3151730F.606B@staff.ichange.com>
  8. References: <4iqbiq$1hb@atlas.uniserve.com>
  9. NNTP-Posting-Host: 140.244.99.60
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (Win95; I)
  14. CC: jl@staff.ichange.com
  15.  
  16. Michael Hutchison wrote:
  17. >...what exactly object orientated programming is. 
  18.  
  19. Well, this can be a matter of some debate, but I think most of us would agree that OO programming is characterized by:
  20.  
  21. 1.  A focus on objects -- programming constructs which include data and methods.  That is, rather than thinking about data 
  22. and what functions can be applied against that data, you think about objects and how they maintain change and report on their 
  23. state.  
  24.  
  25. 2. Object oriented programming supports encapsulation and polymorphism. Encapsulation is the concept of an object being fully 
  26. self-contained. The user of an object should understand what that object can do, but should not care about how that object 
  27. does it.  Polymorphism is the idea that you can ask an object to perform a general action and that action will be 
  28. appropriately carried out based on the specific needs of that specific object. For example, you can ask a window to draw 
  29. itself, and frame windows, dialog windows, text fields, buttons and so forth will each do the right thing based on their own 
  30. specific (sub-type based) needs.
  31.  
  32. You may want to get a good primer on C++ which introduces each of these concepts and then shows how they are implemented in 
  33. C++.  
  34.  
  35. -j
  36.  
  37. ------
  38. Jesse Liberty [AT&T New Media Services]
  39. jl@staff.ichange.com    ZDNet: 72241,72
  40. Teach Yourself C++ In 21 Days. Sams 1994
  41. Teach Yourself MORE C++ In 21 Days. Sams 1996
  42. Teach Yourself ANSI C++ In 21 Days. Sams 1996
  43. C++: An Introduction To Programming. Que 1996
  44.